-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DAS data column custody tracker #5469
Conversation
Since epoch rotation wont necessarily happen at epoch boundaries tracking column custody requirements based on the current epoch no longer makes sense. I've updated |
If I understand correctly, the intention is for the required custody column subnet subscriptions to match our long-term attestation subnet subscriptions. Such that their sets either match or overlap and we don't need complicated logic to rank peers based on orthogonal requirements. Is that correct @AgeManning ? |
Yep, i'm not sure about the timing yet. It may not get pinned to the attestations depending on what other client teams think. However, it should be easy and we won't need fancy logic. Essentially we can add a method to The harder structure is given a data-column to obtain a list of peer-id prefixes we might want to search for. This does require some pre-calculation and some data to be stored. But its mostly done in this PR: #5090 If this PR helps unblock work i'm all for it. It will likely be simplified in the future. I'll push a bit harder for the spec change so we can solidify it in lighthouse. |
I had a chat with @dapplion today and he raised a good point about why setting the custody columns on We've talked about a few alternatives:
We could potentially pass a closure |
Yeah so we've decided not to pass the 32 bytes to the beacon chain after a lengthy discussion with the network devs 🤣 I'll draft up a PR shortly - the solution proposed is below: Custody Columns from gossip
Custody Columns from RPC
Custody Columns from HTTP API
|
@eserilev Thanks a lot for the PR - it's been helpful triggering these discussions. I will close this one now and draft up the new proposal mentioned above. |
Issue Addressed
Add a data column custody tracker field to
BeaconChain
. At the moment this field is only updated once, during network service initialization. In a future iteration, the data column subnet service will handle custody requirement rotations at epoch boundaries, peer discovery, and data column subnet subscriptions/un-subscriptions. This PR just aims to quickly make data column info available on the beacon chain to unblock DAS related work.